package com.ruoyi.teaching.domain.vo;

import java.util.Objects;

/**
 * @Version 1.0.0
 * @Description TODO
 * @Author sunshine
 * @Date 2024/01/19
 */
public class BatchHoliday {

    /**
     * 日期
     */
    private String date;
    /**
     * 计数
     */
    private Integer count;
    /**
     * 描述
     */
    private String description;

    public BatchHoliday() {
    }

    public BatchHoliday(String date, Integer count, String description) {
        this.date = date;
        this.count = count;
        this.description = description;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public String toString() {
        return "BatchHoliday{" +
                "date='" + date + '\'' +
                ", count=" + count +
                ", description='" + description + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        BatchHoliday that = (BatchHoliday) o;
        return Objects.equals(date, that.date) && Objects.equals(count, that.count) && Objects.equals(description, that.description);
    }

    @Override
    public int hashCode() {
        return Objects.hash(date, count, description);
    }
}
